<template>
	<view>
		<view v-for="(item,index) in xiugaishujulist" :key="index" style="display: flex;flex-direction: column; justify-content: space-around; width: 90%;background-color: white;border-radius: 10rpx;margin: 10rpx auto;box-shadow: 1px 1px 5px #c2c2c2;font-size: 26rpx;padding: 20rpx 5rpx;" >
			<view style="display: flex;margin:5rpx 10rpx 10rpx 10rpx; ">
				<text style="font-weight: bold;">类型：</text>
				{{item.leibie}}
				<text style="font-weight: bold;margin-left: 25rpx;">日期：</text>
				{{item.riqi}}
			</view>
			<view style="display: flex;margin: 5rpx 10rpx 5rpx 10rpx; ">
				<view class="">
					<text style="font-weight: bold;">更改详情：</text>
					{{item.detail}}
				</view>
			</view>
			<view style="display: flex;margin:5rpx 10rpx 10rpx 10rpx; ">
				<text style="font-weight: bold;">经手人：</text>
				{{item.jingshouren}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				xiugaishujulist:[],
				page:1,
			}
		},
		onLoad() {
			this.xiugaishuju()
		},
		// 上拉触底
		onReachBottom() {
		  this.page += 1
		  this.xiugaishuju()
		},
		methods: {
			xiugaishuju(){
				uni.showLoading({
					title:"数据加载中……",
					mask:true
				})
				uniCloud.callFunction({
					name:"funshare",
					data:{
						leixing:22,//类型为22时，获取所有更改数据记录
						skip:(this.page-1)*50,
					}
				}).then(res=>{
					
					if(this.page==1){
						this.xiugaishujulist=res.result.data
					}else{
						this.xiugaishujulist.push(...res.result.data)
					}
					uni.hideLoading()
				})
			}
		}
	}
</script>

<style>

</style>
